home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 112 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.3 KB

  1. Path: tko.dec.com!diamond
  2. From: diamond@tko.dec.com (Norman Diamond)
  3. Newsgroups: comp.std.c,soc.culture.japan,fj.life.in-japan
  4. Subject: Re: Help, best way to compare doubles
  5. Followup-To: alt.dev.null
  6. Date: 16 Jan 1996 02:37:13 GMT
  7. Organization: Digital Equipment Corporation Japan , Tokyo
  8. Message-ID: <4df30p$9se@usenet.pa.dec.com>
  9. References: <4d1k09$aqq@mercury.IntNet.net>
  10. Reply-To: diamond@jrdv04.enet.dec-j.co.jp (Norman Diamond)
  11. NNTP-Posting-Host: jit533.tko.dec.com
  12.  
  13. Jeff Tomich (jtomich@IntNet.net) wrote in comp.std.c:
  14. >Having a hard time to figure out a function on how to compare doubles.
  15.  
  16. By now, some postings have shown how to detect if two floating-point
  17. numbers are nearly equal.
  18.  
  19. They're nearly wrong.
  20.  
  21. Floating-point numbers are like Japanese people meeting for the first time,
  22. unsure of their relative status in this hierarchical society:  if two appear
  23. equal, you have to keep computing until they no longer appear equal.
  24.  
  25. [If anyone wants to post a followup, be careful where you post.]
  26. --
  27.  <<  If this were the company's opinion, I would not be allowed to post it.  >>
  28. "I paid money for this car, I pay taxes for vehicle registration and a driver's
  29. license, so I can drive in any lane I want, and no innocent victim gets to call
  30. the cops just 'cause the lane's not goin' the same direction as me" - J Spammer
  31.